<?php /* Smarty version 2.6.19, created on 2008-08-25 22:28:44
         compiled from default/avatar.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'config_load', 'default/avatar.tpl', 1, false),array('modifier', 'replace', 'default/avatar.tpl', 34, false),)), $this); ?>
<?php echo smarty_function_config_load(array('file' => $this->_tpl_vars['settings']['language_file'],'section' => 'general'), $this);?>
<?php echo smarty_function_config_load(array('file' => $this->_tpl_vars['settings']['language_file'],'section' => 'avatar'), $this);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->_config[0]['vars']['language']; ?>
">
<head>
<title><?php echo $this->_tpl_vars['settings']['forum_name']; ?>
<?php if ($this->_tpl_vars['page_title']): ?> - <?php echo $this->_tpl_vars['page_title']; ?>
<?php elseif ($this->_tpl_vars['subnav_location']): ?> - <?php echo $this->_tpl_vars['subnav_location']; ?>
<?php endif; ?></title>
<meta http-equiv="content-type" content="text/html; charset=<?php echo $this->_config[0]['vars']['charset']; ?>
" />
<?php echo '
<style type="text/css">
<!--
body          { color: #000000; background: #ffffff; margin: 20px; padding: 0px; font-family: verdana, arial, sans-serif; font-size: 13px; }
h1            { font-family: verdana, arial, sans-serif; font-size: 18px; font-weight: bold; }
p             { font-family: verdana, arial, sans-serif; font-size: 13px; line-height: 19px; }
.caution      { padding: 0px 0px 0px 20px; color: red; font-weight: bold; background-image:url(templates/'; ?>
<?php echo $this->_tpl_vars['settings']['template']; ?>
<?php echo '/images/caution.png); background-repeat:no-repeat; background-position: left; }
.ok           { padding: 0px 0px 0px 20px; font-weight:bold; color:red; background-image:url(templates/'; ?>
<?php echo $this->_tpl_vars['settings']['template']; ?>
<?php echo '/images/tick.png); background-repeat:no-repeat; background-position: left; }
img.uploaded  { border: 1px solid #000; cursor:pointer; }
.small        { font-size:11px; line-height:16px; }
.delete a             { text-decoration:none !important; }
.delete a:hover span  { text-decoration:underline; }
.delete a img         { border:none; margin:0px 5px -3px 0px; padding:0px; }
a:link        { color: #0000cc; text-decoration: none; }
a:visited     { color: #0000cc; text-decoration: none; }
a:hover       { color: #0000ff; text-decoration: underline; }
a:active      { color: #ff0000; text-decoration: none; }
-->
</style>
'; ?>

</head>
<body<?php if ($this->_tpl_vars['uploaded_file']): ?> onunload="opener.insert_avatar('<?php echo $this->_tpl_vars['avatar']; ?>
')"<?php endif; ?>>
<?php if ($this->_tpl_vars['avatar']): ?>
<h1><?php echo $this->_config[0]['vars']['avatar_hl']; ?>
</h1>
<?php if ($this->_tpl_vars['uploaded_file']): ?>
<p class="ok"><?php echo $this->_config[0]['vars']['upload_successful']; ?>
</p>
<?php endif; ?>
<p><img src="<?php echo $this->_tpl_vars['avatar']; ?>
" alt="" /></p>
<?php if ($this->_tpl_vars['image_downsized']): ?><p class="small"><?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_config[0]['vars']['image_downsized'])) ? $this->_run_mod_handler('replace', true, $_tmp, "[width]", $this->_tpl_vars['new_width']) : smarty_modifier_replace($_tmp, "[width]", $this->_tpl_vars['new_width'])))) ? $this->_run_mod_handler('replace', true, $_tmp, "[height]", $this->_tpl_vars['new_height']) : smarty_modifier_replace($_tmp, "[height]", $this->_tpl_vars['new_height'])))) ? $this->_run_mod_handler('replace', true, $_tmp, "[filesize]", $this->_tpl_vars['new_filesize']) : smarty_modifier_replace($_tmp, "[filesize]", $this->_tpl_vars['new_filesize'])); ?>
</p><?php endif; ?>
<?php if ($this->_tpl_vars['uploaded_file']): ?>
<script type="text/javascript">/* <![CDATA[ */ document.write('<p><button onclick=\"window.close()\"><?php echo $this->_config[0]['vars']['close_window']; ?>
</button><\/p>'); /* ]]> */</script>
<?php else: ?>
<p class="delete"><a href="index.php?mode=avatar&amp;delete=true"><img src="templates/<?php echo $this->_tpl_vars['settings']['template']; ?>
/images/delete.png" alt="" width="16" height="16" /><span><?php echo $this->_config[0]['vars']['delete_avatar']; ?>
</span></a></p>
<?php endif; ?>
<?php elseif ($this->_tpl_vars['upload']): ?>
<h1><?php echo $this->_config[0]['vars']['upload_avatar_hl']; ?>
</h1>
<p><?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_config[0]['vars']['upload_avatar_notes'])) ? $this->_run_mod_handler('replace', true, $_tmp, "[width]", $this->_tpl_vars['settings']['avatar_max_width']) : smarty_modifier_replace($_tmp, "[width]", $this->_tpl_vars['settings']['avatar_max_width'])))) ? $this->_run_mod_handler('replace', true, $_tmp, "[height]", $this->_tpl_vars['settings']['avatar_max_width']) : smarty_modifier_replace($_tmp, "[height]", $this->_tpl_vars['settings']['avatar_max_width'])))) ? $this->_run_mod_handler('replace', true, $_tmp, "[filesize]", $this->_tpl_vars['settings']['avatar_max_filesize']) : smarty_modifier_replace($_tmp, "[filesize]", $this->_tpl_vars['settings']['avatar_max_filesize'])); ?>
</p>
<?php if ($this->_tpl_vars['errors']): ?>
<p class="caution"><?php echo $this->_config[0]['vars']['error_headline']; ?>
</p>
<ul>
<?php unset($this->_sections['mysec']);
$this->_sections['mysec']['name'] = 'mysec';
$this->_sections['mysec']['loop'] = is_array($_loop=$this->_tpl_vars['errors']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['mysec']['show'] = true;
$this->_sections['mysec']['max'] = $this->_sections['mysec']['loop'];
$this->_sections['mysec']['step'] = 1;
$this->_sections['mysec']['start'] = $this->_sections['mysec']['step'] > 0 ? 0 : $this->_sections['mysec']['loop']-1;
if ($this->_sections['mysec']['show']) {
    $this->_sections['mysec']['total'] = $this->_sections['mysec']['loop'];
    if ($this->_sections['mysec']['total'] == 0)
        $this->_sections['mysec']['show'] = false;
} else
    $this->_sections['mysec']['total'] = 0;
if ($this->_sections['mysec']['show']):

            for ($this->_sections['mysec']['index'] = $this->_sections['mysec']['start'], $this->_sections['mysec']['iteration'] = 1;
                 $this->_sections['mysec']['iteration'] <= $this->_sections['mysec']['total'];
                 $this->_sections['mysec']['index'] += $this->_sections['mysec']['step'], $this->_sections['mysec']['iteration']++):
$this->_sections['mysec']['rownum'] = $this->_sections['mysec']['iteration'];
$this->_sections['mysec']['index_prev'] = $this->_sections['mysec']['index'] - $this->_sections['mysec']['step'];
$this->_sections['mysec']['index_next'] = $this->_sections['mysec']['index'] + $this->_sections['mysec']['step'];
$this->_sections['mysec']['first']      = ($this->_sections['mysec']['iteration'] == 1);
$this->_sections['mysec']['last']       = ($this->_sections['mysec']['iteration'] == $this->_sections['mysec']['total']);
?>
<li><?php $this->assign('error', $this->_tpl_vars['errors'][$this->_sections['mysec']['index']]); ?><?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_config[0]['vars'][$this->_tpl_vars['error']])) ? $this->_run_mod_handler('replace', true, $_tmp, "[width]", $this->_tpl_vars['width']) : smarty_modifier_replace($_tmp, "[width]", $this->_tpl_vars['width'])))) ? $this->_run_mod_handler('replace', true, $_tmp, "[height]", $this->_tpl_vars['height']) : smarty_modifier_replace($_tmp, "[height]", $this->_tpl_vars['height'])))) ? $this->_run_mod_handler('replace', true, $_tmp, "[filesize]", $this->_tpl_vars['filesize']) : smarty_modifier_replace($_tmp, "[filesize]", $this->_tpl_vars['filesize'])))) ? $this->_run_mod_handler('replace', true, $_tmp, "[max_width]", $this->_tpl_vars['max_width']) : smarty_modifier_replace($_tmp, "[max_width]", $this->_tpl_vars['max_width'])))) ? $this->_run_mod_handler('replace', true, $_tmp, "[max_height]", $this->_tpl_vars['max_height']) : smarty_modifier_replace($_tmp, "[max_height]", $this->_tpl_vars['max_height'])))) ? $this->_run_mod_handler('replace', true, $_tmp, "[max_filesize]", $this->_tpl_vars['max_filesize']) : smarty_modifier_replace($_tmp, "[max_filesize]", $this->_tpl_vars['max_filesize'])))) ? $this->_run_mod_handler('replace', true, $_tmp, "[server_max_filesize]", $this->_tpl_vars['server_max_filesize']) : smarty_modifier_replace($_tmp, "[server_max_filesize]", $this->_tpl_vars['server_max_filesize'])); ?>
</li>
<?php endfor; endif; ?>
</ul>
<?php endif; ?>
<form id="uploadform" action="index.php" method="post" enctype="multipart/form-data" accept-charset="<?php echo $this->_config[0]['vars']['charset']; ?>
">
<div>
<input type="hidden" name="mode" value="avatar" />
<p><input type="file" name="probe" size="17" /></p>
<p><input type="submit" name="" value="<?php echo $this->_config[0]['vars']['upload_image_button']; ?>
" onclick="document.getElementById('throbber-submit').style.visibility='visible'" /> <img id="throbber-submit" style="visibility:hidden;" src="templates/<?php echo $this->_tpl_vars['settings']['template']; ?>
/images/throbber_submit.gif" alt="" width="16" height="16" /></p>
</div>
</form>
<?php else: ?>
<p class="caution"><?php echo $this->_config[0]['vars']['avatars_disabled']; ?>
</p> 
<?php endif; ?>
</body>
</html>